using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using Granite.Modeling;

namespace Toon.Models.Characters
{
    public class SkillCollection : ChangeTrackingModelCollection<Skill>
    {
        public SkillCollection(List<Skill> list)
            : base(list)
        {

        }

        public SkillCollection(IEnumerable<Skill> source)
            : base(source)
        {

        }

        public Skill this[string name]
        {
            get { return this.Single(s => s.Name == name); }
        }
    }
}
